/*
package com.waitingresult.system.controller.demo;

import com.waitingresult.common.base.model.Result;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import static com.waitingresult.common.constant.ApiUrlConstant.SYSTEM_API;

*/
/**
 * All right reserved,Designed By WangShuai
 * <p>
 *
 * @author : WangShuai
 * @version : V1.0
 * @ClassName : RabbitMq
 * @Description :
 * @date : 2021/9/29 16:37
 *//*

@RestController
@RequestMapping(SYSTEM_API + "demo/rabbit")
public class RabbitMq {
    @Resource
    private RabbitTemplate rabbitTemplate;

    //index
    @GetMapping("rabbitdemo")
    public Result rabbitdemo(String message) {
        rabbitTemplate.convertAndSend("rabbitmq_queue", message);
        return Result.success("发送数据成功");
    }
}
*/
